import pandas as pd
from pandas import DataFrame

datafile = './文本/客运量_1-1.csv' 
datafile2 = './文本/货运量_1-1.csv'

data = pd.DataFrame(pd.read_csv(datafile))
data2 = pd.DataFrame(pd.read_csv(datafile2))

for i in range(13):
    print((data.loc[data['Year'] == 2007+i]).shape)
print('--------')
for i in range(13):
    print((data2.loc[data2['Year'] == 2007+i]).shape)